package com.lsh.payment.core.util.pay.wxpay;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * Project Name: lsh-payment
 * Created by jingyuan
 * Date: 16/10/25
 * 北京链商电子商务有限公司
 * Package com.lsh.payment.consumer.connector.utils.qfpay
 * desc:微信签名
 */
public class WxSignature {

    private static Logger logger = LoggerFactory.getLogger(WxSignature.class);


    /**
     * 生成签名字段
     * @param signMap
     * @param key
     * @return
     */
    public static String getNewSign(final Map<String, String> signMap, String key) {

        return SignUtils.createSign(signMap, key);
    }

    /**
     * 生成签名字段
     * @param signMap
     * @param key
     * @return
     */
    public static String getMisSign(final Map<String, Object> signMap, String key, int timestamp) {
        logger.info("");
        return SignUtils.createMisSign(signMap, key, timestamp);
    }

}
